import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 入库明细查询
export const inWareHouse = (parms:any) => {
    return service.post<any,any>(`/mtlPreCheck/pcMltPreCDList`,parms)
}

// 检核
export const checkAndCheck = (list:any,choose:number) => {
    return  LoginWork.post<any,any>(`/mtlPreCheck/optionMtlPreCheck?choose=${choose}`,list)
}

// 填充单价
export const FillingUnitPrice = (list:any,discount:number,orgPrice:number,sendDate:string,choose:number) => {
    return LoginWork.post<any,any>(`/mtlPreCheck/insertPriceWS?discount=${discount}&orgPrice=${orgPrice}&choose=${choose}`,list)
}

// 填充单价
export const FillingUnitPrice1 = (list:any,discount:number,orgPrice:number,sendDate:string,choose:number) => {
    return LoginWork.post<any,any>(`/mtlPreCheck/insertPriceWS?discount=${discount}&sendDate=${sendDate}&orgPrice=${orgPrice}&choose=${choose}`,list)
}

// 研发收货检核
export const TypeList = () => {
    return service.get<any,any>(`/mtlPreCheck/getPurType`)
}